package com.atguigu.spzx.manager;

import com.atguigu.spzx.common.anno.EnableLogAspect;
import com.atguigu.spzx.common.anno.EnableRedisConfig;
import com.atguigu.spzx.common.aspect.OperLogAspect;
import com.atguigu.spzx.common.config.manager.SpzxRedisConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
//import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement
//@Import(OperLogAspect.class)
//指定加载组件类到容器中
//@Import(SpzxRedisConfig.class)
//@EnableRedisConfig
@EnableScheduling //启动定时任务
@EnableLogAspect //启动日志切面
@EnableCaching
public class SpzxManagerApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpzxManagerApplication.class , args);
    }
}
